package com.wanghlme.bookstore.bean;

import java.util.HashMap;
import java.util.Map;

public class Cart {

    private Map<String, CartItem> cartMap = new HashMap<>();
    private int count;
    private double price;

    public Cart() {
    }

    public Cart(Map<String, CartItem> cartMap, int count, double price) {
        this.cartMap = cartMap;
        this.count = count;
        this.price = price;
    }

    public Map<String, CartItem> getCartMap() {
        return cartMap;
    }

    public void setCartMap(Map<String, CartItem> cartMap) {
        this.cartMap = cartMap;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    @Override
    public String toString() {
        return "Cart{" +
                "cartMap=" + cartMap +
                '}';
    }
}
